/*
package com.settlement.system.controller;

import cn.hutool.json.JSONUtil;
import com.settlement.system.common.constant.StandardConstant;
import com.settlement.system.common.util.common.SystemUserUtil;
import com.alibaba.dubbo.config.annotation.Reference;
import cn.wlx.pack.cloud.lang.result.Result;
import cn.wlx.pack.permission.common.model.BpApiGetAuthMenuResponse;
import cn.wlx.pack.permission.dubbo.api.BpApiDubboClient;
import com.settlement.system.model.entity.common.SystemUser;
import com.wlx.base.common.model.SystemUser;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import jakarta.servlet.http.HttpServletResponse;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import jakarta.servlet.http.HttpServletRequest;
import java.util.List;

*/
/**
 * @author
 *//*

@Slf4j
@RestController
@Api(tags = "_Menu_", description = "菜单")
@RequestMapping(value = StandardConstant.API_VERSION)
public class AuthorityMenuController{

    private final String ACS_SYS_CODE="acs";

    @Reference(version = "0.1.0",check = false)
    private BpApiDubboClient bpApiDubboClient;

    @ApiOperation(value = "菜单列表", notes = "菜单列表")
    @RequestMapping(value = "/authority/menu/tree", method = RequestMethod.GET)
    public Result<List<BpApiGetAuthMenuResponse>> menuList(HttpServletRequest request, HttpServletResponse response) {
        SystemUser systemUser = SystemUserUtil.getSystemUser();
        log.info("获取菜单用户信息：{}", JSONUtil.toJsonStr(systemUser));
        try {
            Result<List<BpApiGetAuthMenuResponse>> result = bpApiDubboClient.getAuthMenus(ACS_SYS_CODE, systemUser.getUserName());
            log.info("获取权限中台菜单：{}  result:{}", systemUser.getUserName(), JSONUtil.toJsonStr(result));
            return result;
        } catch (Exception e) {
            log.error("用户：{},查询菜单权限异常：{},", systemUser.getUserName(), e);
            return Result.failed(500, e.getMessage());
        }
    }

}
*/
